package cn.csc.module.search.dal.es.skuStock;

import cn.csc.module.search.dal.dataobject.skuStock.SkuStockDO;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.Collection;
import java.util.List;

/**
 * @author liuchuang
 * @version 1.0
 * @modify
 * @since 2025/3/17 16:11
 */
@Repository
public interface SkuStockRepository extends ElasticsearchRepository<SkuStockDO, BigInteger> {

    SkuStockDO findBySkuId(BigInteger skuId);

    List<SkuStockDO> findBySkuIdIn(Collection<BigInteger> skuIds);

}
